package services

import (
	"net/http"

	"github.com/labstack/echo/v4"
)

// unauthorized 返回401
func unauthorized(msg ...interface{}) error {
	return echo.NewHTTPError(http.StatusUnauthorized, msg...)
}

// badRequest 返回400
func badRequest(msg ...interface{}) error {
	return echo.NewHTTPError(http.StatusBadRequest, msg...)
}

// forbidden 返回403
func forbidden(msg ...interface{}) error {
	return echo.NewHTTPError(http.StatusForbidden, msg...)
}
